package org.example.basic;

import lombok.Data;

@Data
public class Node implements Comparable<Node>{

    private Integer v;

    private Integer degree;

    public Node(Integer v,Integer degree){
        this.v=v;
        this.degree=degree;
    }

    @Override
    public int compareTo(Node o) {
        return this.degree.compareTo(o.degree);
    }

}
